<?php
namespace Home\Controller;
use Think\Controller;
class EndController extends Controller {
  //显示选择题
    public function index(){
       //获取到科目
    	$sid = session('sid');
    	$subjectModel = D('Subject');
    	$subjectList = $subjectModel->where("id = $sid")->find();
    	session_destroy();
    	$this->assign('list',$subjectList['name']);
       $this->display('end');
    }
}